* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#uploadPage img {
    border: none;
}

#uploadPage a {
    text-decoration: none;
    background-color: transparent;
    cursor: pointer;
}

#uploadPage audio,
#uploadPage canvas,
#uploadPage progress,
#uploadPage video {
    display: inline-block;
    vertical-align: baseline;
}

#uploadPage, .app .main {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}

#uploadPage {
    height: 100%;
    display: none;
    top: 0;
}

#uploadPage .upload-loading {
    display: none;
    background: rgba(0, 0, 0, .2);
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    z-index: 3;
}

#uploadPage .loadEffect {
    width: 50px;
    height: 50px;
    margin: 0 auto;
    position: absolute;
    z-index: 3;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
}

#uploadPage .loadEffect span {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #adff2f;
    position: absolute;
    -webkit-animation: load 1.04s ease infinite;
    animation: load 1.04s ease infinite;
}

@-webkit-keyframes load {
    0% {
        -webkit-transform: scale(1.2);
        opacity: 1;
    }
    100% {
        -webkit-transform: scale(.3);
        opacity: 0.5;
    }
}
@keyframes load {
    0% {
        -webkit-transform: scale(1.2);
        opacity: 1;
    }
    100% {
        -webkit-transform: scale(.3);
        opacity: 0.5;
    }
}

#uploadPage .loadEffect span:nth-child(1) {
    left: 0;
    top: 50%;
    margin-top: -5px;
    -webkit-animation-delay: 0.13s;
    animation-delay: 0.13s;
}

#uploadPage .loadEffect span:nth-child(2) {
    left: 7px;
    top: 7px;
    -webkit-animation-delay: 0.26s;
    animation-delay: 0.26s;
}

#uploadPage .loadEffect span:nth-child(3) {
    left: 50%;
    top: 0;
    margin-left: -5px;
    -webkit-animation-delay: 0.39s;
    animation-delay: 0.39s;
}

#uploadPage .loadEffect span:nth-child(4) {
    top: 7px;
    right: 7px;
    -webkit-animation-delay: 0.52s;
    animation-delay: 0.52s;
}

#uploadPage .loadEffect span:nth-child(5) {
    right: 0;
    top: 50%;
    margin-top: -5px;
    -webkit-animation-delay: 0.65s;
    animation-delay: 0.65s;
}

#uploadPage .loadEffect span:nth-child(6) {
    right: 7px;
    bottom: 7px;
    -webkit-animation-delay: 0.78s;
    animation-delay: 0.78s;
}

#uploadPage .loadEffect span:nth-child(7) {
    bottom: 0;
    left: 50%;
    margin-left: -5px;
    -webkit-animation-delay: 0.91s;
    animation-delay: 0.91s;
}

#uploadPage .loadEffect span:nth-child(8) {
    bottom: 7px;
    left: 7px;
    -webkit-animation-delay: 1.04s;
    animation-delay: 1.04s;
}

#uploadPage .bar {
    height: 50px;
    padding: 10px;
    line-height: 30px;
    position: relative;
    z-index: 999;
    color: #fff;
    background: #2f4f4f;
}

.pull-left {
    float: left;
}

.pull-right {
    float: right;
}

#uploadPage .toggle {
    margin-left: 30px;
    color: #fef4e9;
    border: 1px solid #da7c0c;
    vertical-align: middle;
    padding: 6px 5px;
    line-height: 1;
}

#uploadPage .toggle.active {
    background: -webkit-gradient(linear, left top, left bottom, from(#faa51a), to(#f47a20));
    background: -moz-linear-gradient(top, #faa51a, #f47a20);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#faa51a', endColorstr='#f47a20');
}

#uploadPage .main {
    top: 30px;
    z-index: 1;
    bottom: 0;
    right: 0;
}

#uploadPage .upload-mask {
    height: 100%;
    width: 100%;
    position: absolute;
    z-index: 2;
}

#uploadPage .photo-canvas,
#uploadPage .preview-box {
    top: 50%;
    -webkit-transform: translate3d(-50%, -50%, 0);
    transform: translate3d(-50%, -50%, 0);
}

#rotateBtn,
#uploadPage .photo-canvas,
#uploadPage .preview-box {
    left: 50%;
    position: absolute;
}

#preview {
    display: block;
    z-index: 1;
}

#uploadPage .photo-canvas {
    border: 1px solid #000;
    transform: translate3d(-50%, -50%, 0);
    z-index: 3;
}

#rotateBtn {
    text-align: center;
    bottom: 15px;
    -webkit-transform: translate3d(-50%, -50%, 0);
    transform: translate3d(-50%, -50%, 0);
    color: #fff;
    z-index: 5;
}

